Skip to content

Comments

Improve typing in codegen#252

Merged
inducer merged 12 commits intoinducer:mainfrom
alexfikl:type-codegen
Nov 11, 2025
Merged

Improve typing in codegen#252
inducer merged 12 commits intoinducer:mainfrom
alexfikl:type-codegen

Conversation

@alexfikl
Copy link
Collaborator

@alexfikl alexfikl commented Nov 8, 2025

Also

  • Adds a bunch more types to expansions (mostly return values and fixes some errors within various methods).
  • Removes CallExternalRecMapper and the combine mappers machinery, as discussed.

@alexfikl alexfikl force-pushed the type-codegen branch 2 times, most recently from 8ab5ca2 to 334b237 Compare November 8, 2025 14:27

# Start with source coefficients. Gets updated after each axis.
cur_dim_input_coeffs = src_coeffs
cur_dim_input_coeffs = cur_dim_output_coeffs = list(src_coeffs)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just gives a default value to cur_dim_output_coeffs because pyright was complaining about it. Is it confusing?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is confusing to me. Would it instead be possible to manufacture a list of bogus values?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexfikl alexfikl force-pushed the type-codegen branch 2 times, most recently from cd22a72 to 05fc1db Compare November 8, 2025 17:31
@alexfikl alexfikl marked this pull request as ready for review November 8, 2025 17:33
Copy link
Owner

@inducer inducer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx!


# Start with source coefficients. Gets updated after each axis.
cur_dim_input_coeffs = src_coeffs
cur_dim_input_coeffs = cur_dim_output_coeffs = list(src_coeffs)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is confusing to me. Would it instead be possible to manufacture a list of bogus values?

@inducer inducer merged commit b28ecd6 into inducer:main Nov 11, 2025
8 checks passed
@inducer
Copy link
Owner

inducer commented Nov 11, 2025

Thank you!

@alexfikl alexfikl deleted the type-codegen branch November 11, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants